package com.goldenlight.fvms.manager.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.goldenlight.fvms.manager.entity.UserInfo;
import com.goldenlight.fvms.manager.dao.UserInfoDao;
import com.goldenlight.fvms.manager.service.UserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  用户信息表 服务实现类
 * </p>
 *
 * @author luocx
 * @since 2018-12-08
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoDao, UserInfo> implements UserInfoService {

    @Autowired
    private UserInfoDao userInfoDao;
    @Override
    public UserInfo login(UserInfo user) {
        return userInfoDao.selectOne(new QueryWrapper(user));
    }
}
